﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BasicExample.aspx.cs" Inherits="StupidGrid.Example._Default" %>

<%@ Register Assembly="StupidGrid" Namespace="StupidGrid" TagPrefix="sg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Plain example with table</title>
</head>
<body>
    <form id="form1" runat="server">
<%--
    Set UserControlPath to the path of the user control you want to repeat as a 'row' inside stupidgrid
        If you aren't sure what the path is, just drag the UserControl into this source view and copy the path

    You can use any markup structure you want, but this example wraps the StupidGrid in a table.
        If you set WrapFooterInTableRow to "true", then the "Add" button will be put into a <tr> of it's own
--%>
        <table>
            <tr>
                <th>Address</th>
                <th>City</th>
                <th>State</th>
                <th>Del</th>
            </tr>
            <sg:StupidGrid ID="stupidgrid_address" WrapFooterInTableRow="true" UserControlPath="~/address.ascx" runat="server" />
        </table>
        
        <asp:Button ID="btn_view" Text="View Data" runat="server" />
    </form>
    
    <hr />

    <asp:Literal ID="lit_results" runat="server" />
</body>
</html>
